package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * <p>
 * 设备管理-设备维修记录表
 * </p>
 *
 * @author liangjiuqing
 * @since 2024-09-27 10:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@TableName("t_device_v2_maintenance_record")
@ApiModel(value = "TDeviceV2MaintenanceRecord对象", description = "设备管理-设备维修记录表")
public class TDeviceV2MaintenanceRecord extends CommonEntity {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("产线（字典code=device_line）")
    @TableField("line")
    private String line;

    @ApiModelProperty("维修保养时间（yyyy-MM-dd）")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("maintenance_time")
    private Date maintenanceTime;

    @ApiModelProperty("维修保养内容")
    @TableField("maintenance_content")
    private String maintenanceContent;

    @ApiModelProperty("项目id")
    @TableField("project_id")
    private Long projectId;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
}
